lunomobs:register_mob("lunomobs:spider2", {
	mob_name="ARANHA NEGRA",
	type = "monster",
	hp_max = 6,
	xp_give = 14,
	visual = "mesh",
	--mesh = "mobs_spider.x",
	mesh = "mobs_spider.x",
	textures = {"mobs_spider2.png"},
	collisionbox = {-0.8, -0.5, -0.8, 0.8, 0.5, 0.8}, 
	visual_size = {x=8, y=8},
	makes_footstep_sound = false,
	view_range = 15,
	walk_velocity = 1.5,
	run_velocity = 3.0,
	damage = 4,
	drops = {
		{name="farming:string", chance=10, min=1, max=4,}, -- Dropa Linha
	},
	light_resistant = true,
	armor = 150,
	drawtype = "front",
	water_damage = 1,
	lava_damage = 5,
	light_damage = 5,
	disable_fall_damage=true, --Não leva dano quando cai do alto
	attack_type = "dogfight",
	animation = {
		speed_normal = 15,
		speed_run = 20,
		stand_start = 0,
		stand_end = 8,
		walk_start = 10,
		walk_end = 18,
		run_start = 10,
		run_end = 18,
		punch_start = 10,
		punch_end = 18,
	},
	sounds={ random="mobs_spider_random", attack="obj_chew", hit="mobs_spider_hit", die="mobs_spider_die", },
})

--lunomobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, spawn_func)
lunomobs:register_spawn("lunomobs:spider2", {"default:stone","watershed:stone"}, 10, -1, 7000, 3, 0)

minetest.register_craftitem("lunomobs:spider2", {
	description = "Aranha",
	groups = { mobs=1 },
	inventory_image = "mob_spider2.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:spider2")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("spider2"		, "lunomobs:spider2")
minetest.register_alias("spiderblack"	, "lunomobs:spider2")
minetest.register_alias("aranha2"	, "lunomobs:spider2")
minetest.register_alias("aranhanegra"	, "lunomobs:spider2")
